namespace UniversalAdmin.Application.Dtos.File;

/// <summary>
/// 文件信息DTO
/// </summary>
public class FileDto
{
    public Guid Id { get; set; }
    public string Name { get; set; } = string.Empty;
    public string OriginalName { get; set; } = string.Empty;
    public string Path { get; set; } = string.Empty;
    public string Url { get; set; } = string.Empty;
    public long Size { get; set; }
    public string? MimeType { get; set; }
    public Guid? UserId { get; set; }
    public string? Username { get; set; }
    public DateTime CreatedAt { get; set; }
}

/// <summary>
/// 文件上传结果DTO
/// </summary>
public class FileUploadDto
{
    public Guid Id { get; set; }
    public string Name { get; set; } = string.Empty;
    public string OriginalName { get; set; } = string.Empty;
    public string Path { get; set; } = string.Empty;
    public string Url { get; set; } = string.Empty;
    public long Size { get; set; }
    public string? MimeType { get; set; }
    public DateTime CreatedAt { get; set; }
}

/// <summary>
/// 文件查询DTO
/// </summary>
public class FileQueryDto
{
    public int PageIndex { get; set; } = 1;
    public int PageSize { get; set; } = 10;
    public string? Keyword { get; set; }
    public string? MimeType { get; set; }
    public Guid? UserId { get; set; }
}
